<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form id="MainForm"  action="ApplyEdit.do" method="post"> 
<tr>
	<td>
		<table>
			<caption>
				企业展会备案申请表
			</caption>
			<tr><td style="text-align:center;">
				<table  class="bean" style="width: 60%;">
					<tr class="size">
					  <td width="22%"></td>
					  <td></td>
					</tr>
					<tr class="size">
					  <td><span class="errorinfo"><c:if test="${map.user.errorInfo!=null}">${map.user.errorInfo}</c:if></span></td>
					  <td  style="text-align: right;">带<span  class="warning" >*</span>项必填</td>
					</tr>
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>展会名称</td>
					  <td><input type="text"  class="formInput willinput required" name="exhName" ></td>
					  </tr>
					  <tr>
					  <td class="formLabel" ><span  class="warning" >*</span>展会地点</td>
					  <td><input type="text"  class="formInput willinput required"  name="exhAddress" ></td>
				      </tr>
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>展览面积</td>
					  <td><input type="text"  class="formInput willinput required"  name="exhArea"></td>
					  </tr><tr>
					  <td class="formLabel" >展馆馆号</td>
					  <td><input type="text"  class="formInput"  name="exhHall" ></td>
					</tr>
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>开展日期</td>
					  <td><input type="text" name="beginDate" class="readonly dateinput required" readonly="readonly" onclick="setday(this)"></td>
					  </tr><tr>
					  <td class="formLabel" ><span  class="warning" >*</span>毕展日期</td>
					  <td><input type="text" name="endDate" class="readonly dateinput required great-than-equal-beginDate" readonly="readonly" onclick="setday(this)"></td>
					</tr>
					
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>主办单位</td>
					  <td><input type="text"  class="formInput willinput required"  name="preEntName"></td>
					  </tr><tr>
					  <td class="formLabel" ><span  class="warning" >*</span>主办单位联系人</td>
					  <td><input type="text"  class="formInput willinput required"  name="preContactor"></td>
					</tr>
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>主办单位联系电话</td>
					  <td><input type="text"  class="formInput willinput required"  name="preTelephone" ></td>
					  </tr>
					<tr>
					  <td class="formLabel" >承办单位</td>
					  <td><input type="text"  class="formInput "  name="undEntName"></td>
					  </tr><tr>
					  <td class="formLabel" >承办单位联系人</td>
					  <td><input type="text"  class="formInput "  name="undContactor"></td>
					</tr>
					<tr>
					  <td class="formLabel" >承办单位联系电话</td>
					  <td><input type="text"  class="formInput "  name="undTelephone"></td>
					</tr>
					<tr>
					  <td class="formLabel" >报检单位</td>
					  <td>${map.currentUser.entCname}</td>
					  </tr><tr>
					  <td class="formLabel" >企业注册号</td>
					  <td >${map.currentUser.declRegNo}</td>
					</tr>
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>报检单位联系人</td>
					  <td><input type="text"  class="formInput willinput required"  name="agentContactor"></td>
					  </tr><tr>
					  <td class="formLabel" ><span  class="warning" >*</span>报检单位固定电话</td>
					  <td><input type="text"  class="formInput willinput required"  name="agentTelephone"></td>
					</tr>
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>联系人移动电话</td>
					  <td><input type="text"  class="formInput willinput required"  name="agentMobileTelephone"></td>
					  </tr><tr>
					  <td class="formLabel" ><span  class="warning" >*</span>报检单位传真</td>
					  <td><input type="text"  class="formInput willinput required"  name="fax"></td>
					</tr>
					 
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>展会性质</td>
					  <td class="willinput"><mytag:checkbox type="exhProp" values="${apply.exhProp}" className="noborder inputLeftMargin validate-one-required" name="exhProp" opeation="true" wrapCount="3"/></td>
					  </tr><tr>
					  <td class="formLabel" ><span  class="warning" >*</span>展品类别</td>
					  <td class="willinput"><mytag:checkbox type="itemSort" values="${apply.itemSort}" className="noborder inputLeftMargin validate-one-required" name="itemSort" opeation="true" multiSelect="true" wrapCount="3"/></td>
					</tr>
					<tr>
					  <td class="formLabel" ><span  class="warning" >*</span>随附单据</td>
					  <td class="willinput"><mytag:checkbox type="sheetType" values="${apply.sheetType}" className="noborder inputLeftMargin validate-one-required" name="sheetType" opeation="true" multiSelect="true" wrapCount="3"/></td>
					  </tr><tr>
					  <td class="formLabel" ><span  class="warning" >*</span>处置计划</td>
					  <td class="willinput"><mytag:checkbox type="trePlan" values="${apply.trePlan}" className="noborder inputLeftMargin validate-one-required" name="trePlan" opeation="true" multiSelect="true" wrapCount="3"/></td>
					</tr>
					 <tr>
					  <td class="formLabel" ><span  class="warning" >*</span>上传文件图片</td>
					  <td><a href="#" onclick="openFileViewWin();"><img src="images/plus.jpg"/></a></td>
					</tr>
					<tr>
						<td class="formLabel" >注意事项</td>
						<td align="left">
							     申请单位承诺：<br>
								   **   进境展品涉及动物、植物、动植物产品，报检单位须提前2周报浦东检疫检验局动监处预审。<br>
								   **   严格遵守检验检疫法规。<br>
								   **   展品不涉及中国禁止进境商品。<br>
								   **   积极配合浦东检验检疫部门对入境展品实施检验检疫和现场监督管理工作，服从检验检疫人员的管理要求。<br>
								   **   对涉及入境展品违反检验检疫法律法规的行为承担法律责任。<br>
						</td>
					</tr>
				</table>
			</td></tr>
		</table>
	</td>
</tr>

<tr class="button">
  <td align="center">
  	<div>
		    <input type="hidden" name="tempId" id="tempId" value="${map.tempId}">
		    <input type="hidden" id="fileCount" value="0">
	  		<input type="submit" value=" 提 交 " id="submitButton" >
		    <input type="button" value=" 返 回 " onClick="window.history.back();">
		  	<script type="text/javascript">
		  			function openFileViewWin(){
		  				var url="ImgUpload.html?tempId="+document.getElementById('tempId').value;
						var fileCount =openModalDialog(url,800,540);
						document.getElementById("fileCount").value=fileCount;
					}
			 		new Validation('MainForm',{
				 		onFormValidate:function(result, form) {
 							if(result){
								if(window.confirm("备案申请提交后不能修改，您确定要提交吗？")){
										if(0==document.getElementById("fileCount").value){
 											if(window.confirm(" 您还没有上传展会备案文件图片，您确定要提交吗？")){
 												return true;
 											}else{
 												return false;
 											}
										}
										return true;
								}else{
										return false;
								}
 							}else{
								return false;
 							}
 						}
					 });
					 
			 </script>
  	</div>
   </td>
</tr>
</form>